package pw.goyd.game.logic;

import pw.goyd.protocol.core.Serializer;
import pw.goyd.subscribe.PlayerCustomer;

/**
 * 庄家分数
 *
 * @author StanWind
 */
public class DeclarerResponse extends Serializer {
    private PlayerCustomer playerCustomer;

    public PlayerCustomer getPlayerCustomer() {
        return playerCustomer;
    }

    public void setPlayerCustomer(PlayerCustomer playerCustomer) {
        this.playerCustomer = playerCustomer;
    }

    @Override
    protected void read() {


    }

    @Override
    protected void write() {
        writeString(playerCustomer.getAccount_id());
        writeByte((byte) playerCustomer.getDeclarer());
    }

}
